#include "Joystick.h"

#if defined(USB_DONGLE)
#include "usbd_hid_composite_if.h"

Joystick_::Joystick_(void)
{

}

void Joystick_::begin(void)
{
  HID_Joystick_Init(HID_JOYSTICK);
}

void Joystick_::end(void)
{
  HID_Joystick_DeInit(HID_JOYSTICK);
}

void Joystick_::report(uint8_t *report)
{
  HID_joystick_sendReport(report, 8*sizeof(uint16_t));
}

Joystick_ Joystick;

#endif
